import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path"; //npm i -D @types/node

import dts from "vite-plugin-dts";
export default defineConfig({
  plugins: [
    vue(),
    // basicSsl(),
    dts({
      //指定使用的tsconfig.json为我们整个项目根目录下掉,如果不配置,你也可以在components下新建tsconfig.json
      tsConfigFilePath: "./tsconfig.json",
    }),
  ],
  server: {
    host: "0.0.0.0",
    port: 5444,
    // https: true,
    hmr: true,
    cors: true,
  },
  resolve: {
    alias: {
      "@": path.join(__dirname, "src"),
    },
  },
});
